package com.haidechizi.designpattern.strategy.apply;

/**
 * @author haidechizi
 */
public class BarCodeFactory {

    public static BarCodeAnalysis getAnalysis(Long vendorId) {
        if (1 == vendorId) {
            return new SpecialBarCodeAnalysis();
        }
        return new DefaultBarCodeAnalysis();
    }
}
